﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Nature.Numerics
{
    public abstract class ConservationLowBase : IFunction
    {
        protected abstract double CalcValue(double variable);

        public double FixedValue { get; protected set; }

        #region IFunction Members

        public double Compute(double variable)
        {
            return CalcValue(variable) - FixedValue;
        }

        #endregion
    }
}
